<article class="module width_full">
    <header><h3>{#actions#}</h3></header>
    <table width="100%" cellpadding="3" cellspacing="1">
            <tbody>
                    <tr>
							<th align="center" class="header"><a href="index.php?mod=myprofile&userID={$userID}">{#edit#}</a></th>
                            <th align="center" class="header"><a href="index.php?mod=profile&userID={$userID}">{#profile#}</a></th>
                            <th align="center" class="header"><a href="index.php?mod=profile&page=mails&userID={$userID}">{#mails#}</a></th>
                            <th align="center" class="header"><a href="index.php?mod=profile&page=quests&userID={$userID}">{#quest#}</a></th>
                    </tr>
            </tbody>
    </table>
</article>
{foreach from=$value item=item}
<form method="post">
<article class="module width_full">
    <header><h3>{#myprofile_title#}</h3></header>
    <div class="module_content">
        <fieldset>
            <label>{#username#}</label>
            <input type="text" value="{$item.name}" readonly>
        </fieldset>
        <fieldset style="width:48%; float:left; margin-right: 3%;">
            <label>{#mail#}</label>
            <input type="text" name="mail" value="{$item.email}" >
        </fieldset>
        <fieldset style="width:48%; float:left;">
            <label>{#credits#}</label>
            <input type="text" name="credits" value="{$item.credits}" >
        </fieldset>
        <fieldset style="width:48%; float:left; margin-right: 3%;">
            <label>{#access_level#}</label>
            <select name="accesslevel" style="width:92%;">
                <option value="{$item.access_level}">{#currently#} {$item.access}</option>
				{$access}
            </select>
        </fieldset>
        <fieldset style="width:48%; float:left;">
            <div style="float:left; width:48%;">
            <label>{#activated#}</label><br /><br />
            <select name="activated">
                <option value="{$item.activated}">{#currently#} {if $item.activated == 1} {#isactivated#} {else} {#notactivated#} {/if}</option>
                <option value="1">{#isactivated#}</option>
                <option value="0">{#notactivated#}</option>
            </select>
            </div>
            <div style="float:left; width:48%;">
            <label>{#lastadress#}</label>
            <input type="text" name="ip" value="{$item.last_ip}" readonly>
            </div>
        </fieldset><div class="clear"></div>
  
    </div>
    <footer>
        <div class="submit_link">
			<a href="index.php?mod=myprofile&page=new"><input type="button" value="{#new#}"  class="alt_btn"></a>
            <input type="submit" value="{#submit#}"  name="data_submit" class="alt_btn">
        </div>
    </footer>
</article>
</form>

<form method="post">
<article class="module width_full">
    <header><h3>{#password_title#}</h3></header>
    <div class="module_content">
        <fieldset>
            <label>{#currently#}</label>
            <input type="password" name="currently">
        </fieldset>
        <fieldset>
            <label>{#password#}</label>
            <input type="password" name="new_pw">
        </fieldset>
        <fieldset>
            <label>{#password_repeat#}</label>
            <input type="password" name="new_pw_rpt">
        </fieldset>
        <div class="clear"></div>
  
    </div>
    <footer>
        <div class="submit_link">
            <input type="submit" name="pw_submit" value="{#submit#}" class="alt_btn">
        </div>
    </footer>
</article>
</form>
{/foreach}

<div class="modal" id="edited">
        <h3>{#edited#}</h3>
		<p>{#success_edited#}</p>
</div>

<div class="modal" id="saved">
        <h3>{#saved#}</h3>
		<p>{#success_saved#}</p>
</div>
<div class="modal" id="wrong_rpt">
        <h3>{#wrong_rpt#}</h3>
		<p>{#success_wrong_rpt#}</p>
</div>
<div class="modal" id="wrong_cnt">
        <h3>{#wrong_cnt#}</h3>
		<p>{#success_wrong_cnt#}</p>
</div>